// 禁用三种警告
// if else 分支代码相同   模块名称和父模块同名    给函数传入()作为无意义的参数
// 显式允许这些情况的发生 避免警告信息淹没了真正的报错信息
#![allow(clippy::if_same_then_else, clippy::module_inception , clippy::unit_arg)]

#[cfg(all(not(target_os="macos"), not(target_os = "windows")))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; 

jizi_macro::mod_pub!(app cmp confirm help input lives mgr notify pick spot tasks which);
jizi_macro::mod_flat!(context executor logs panic root router signals term);


#[tokio::main]
async fn main() -> anyhow::Result<()>{
    Panic::install() ;

    jizi_shared::init() ;
    
    Logs::start()?;
    
    _ = fdlimit::raise_fd_limit()? ;
    
    

    Ok(())
}